package dto

import (
	emodel "engine/model"

	"lib/db"
)

func GetNoticeById(Id string) (*emodel.My_notice, error) {
	var userNew emodel.My_notice
	err := db.GetDb().Where("id = ? ", Id).Order("id desc").First(&userNew).Error
	if err != nil {
		return nil, nil
	}
	return &userNew, nil
}
